package com.zhb.core.utils;

import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {

	public static Properties getProperties() throws Exception{
		InputStream inputStream;        
		ClassLoader classLoader = PropertiesUtil.class.getClassLoader();        
		if  (classLoader !=  null ) {        
		         inputStream = classLoader.getResourceAsStream( "db_generate.properties" );        
		}else{        
		         inputStream = ClassLoader.getSystemResourceAsStream( "db_generate.properties" ); 
		}
		Properties dbProps =  new  Properties();        
		dbProps.load(inputStream);
		return dbProps;
	}
}
